package com.panda.group.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.panda.group.entity.Group;
import com.panda.group.entity.MemberInfo;
import com.panda.sys.entity.User;

public interface GroupMapper {
	int deleteByPrimaryKey(Long id);

    int insert(Group record);

    int insertSelective(Group record);

    Group selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Group record);

    int updateByPrimaryKey(Group record);

	List<Group> findListLimit(@Param("offSet") Long offSet,@Param("pageSize") Long pageSize,@Param("uid")Long uid, @Param("name") String name);
	Long findListCount(@Param("uid")Long uid, @Param("name") String name);

	List<User> findAllStudent();

	List<MemberInfo> findMemberInfoLimit(@Param("offSet") Long offSet,@Param("pageSize") Long pageSize,@Param("name") String name,@Param("haveSubmit")String haveSubmit, @Param("belong") Long belong);

	Long findMemberInfoCount(@Param("name") String name,@Param("belong") Long belong);
}